From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj@www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 14 23:21:46 2006 Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj@www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 18:25:06 2006 Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj@www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Tue Mar 28 20:17:06 2006 Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll and > jar. > Copied the jar to linux (where all is fine and dandy) > to sign it and send it back. > Copied the dll's to windows\system and > windows\system32 (since I'm not sure which one to > putit in). > Put the jar in the proper directory for my applet. > Calling rxtx from the applet crashes the browser. > > Anyone have any ideas here ? > > Two points: > 1. This thing works fine in the applet under linux, > and > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). > rxtx-2.1-6pre16 is probably what you want to use for all OS's. On Linux it wont change much but for w32 we fixed some bugs that may be related to what you are seeing. The precompiled binaries should be fine on w32. I think you can use your same Makefile too if you would like to build/modify. The library path on w32 for the .dll is not something I've looked at in too much detail. I've always placed the .dll in the java tree with the other dlls or in a seperate path in applications that evoke java. Be careful with 'littering' dlls on the system :) People have used applets after dealing with security as you appear to have. Though, I'm not sure this has been done on w32 - I've just not heard. More interesting from my perspective would be trying to reproduce the problem with a stand alone app that just enumerates the ports and opens it. Maybe there will be a hint there. RXTX will complain if it does not find the dll for instance. If you are trying this in VMWare, rxtx will blow up anything. W32 is confused by VMWare, suggests com1-4 are available and explodes with an IRQ conflict. The only solution I've found on VMWare is to force enumeration to return just the ports that are known to exist. From john_db_adams at yahoo.com Fri Oct 10 12:35:35 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 11:35:35 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010183535.37970.qmail@web13205.mail.yahoo.com> er ... do you mean 2.1.7pre16 ? Can't find any 2.1.6pre16 Anyways, will give that a try ... btw, removed the dll's from the system/32 directories and just got a LinkNotSatisfied Exception ... Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > Hi, > > On winXP: > > downloaded and installed mingW-3.0.xx and msys. > > Downloaded and unpacked the rxtx-2.1.6 tarball. > > Copied the makefile.winw32 to build\makefile, and > > changed the path accorrdingly. > > While compiling, would terminate on the error: > could > > not find "config.h", so I copied ../config.h.in to > > src\config.f ... (not sure what else I could have > > done). Nonetheless, it compiled, and I got my dll > and > > jar. > > Copied the jar to linux (where all is fine and > dandy) > > to sign it and send it back. > > Copied the dll's to windows\system and > > windows\system32 (since I'm not sure which one to > > putit in). > > Put the jar in the proper directory for my applet. > > Calling rxtx from the applet crashes the browser. > > > > Anyone have any ideas here ? > > > > Two points: > > 1. This thing works fine in the applet under > linux, > > and > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > > > rxtx-2.1-6pre16 is probably what you want to use for > all OS's. On Linux > it wont change much but for w32 we fixed some bugs > that may be related to > what you are seeing. The precompiled binaries > should be fine on w32. I > think you can use your same Makefile too if you > would like to > build/modify. > > The library path on w32 for the .dll is not > something I've looked at in > too much detail. I've always placed the .dll in the > java tree with the > other dlls or in a seperate path in applications > that evoke java. Be > careful with 'littering' dlls on the system :) > > People have used applets after dealing with security > as you appear to > have. Though, I'm not sure this has been done on > w32 - I've just not > heard. More interesting from my perspective would > be trying to reproduce > the problem with a stand alone app that just > enumerates the ports and > opens it. Maybe there will be a hint there. RXTX > will complain if it does > not find the dll for instance. > > If you are trying this in VMWare, rxtx will blow up > anything. W32 is > confused by VMWare, suggests com1-4 are available > and explodes with an IRQ > conflict. The only solution I've found on VMWare is > to force enumeration > to return just the ports that are known to exist. > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 12:39:45 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:39:45 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010183535.37970.qmail@web13205.mail.yahoo.com> References: <20031010183535.37970.qmail@web13205.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > er ... do you mean 2.1.7pre16 ? > Can't find any 2.1.6pre16 > Sorry, yes 2.1.7pre16. It is used in some commercial applications shipping now. Other than adding the changes to 2.0 its ready for formal release. The known bugs are listed on the front page of www.rxtx.org. From taj at linuxgrrls.org Fri Oct 10 12:44:00 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 19:44:00 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > 2. Before doing all this compiling, I just used the > same jar from linux, with a pre-compiled dll for > version 2.1.7-pre-xxx. All I got back was a warning > about the rxtx versions being incompatible (2.1.6 jar > and 2.1.7-pre dll), and a com port unavailable error > (I tried all of them). Make sure you can open the port with another application. Often people forget to turn on the serial ports in BIOS. All enumeration does is try to open the port, set it to sane values and then do a timed out read. The system throws errors if the port is not there. From john_db_adams at yahoo.com Fri Oct 10 14:24:34 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 13:24:34 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: Message-ID: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Well sojme progress has been made ... Compiled and installed the 2.1-7pre16 and the brtowser does not crash. Did say that the port is unavailable though. B4 looking at the bios, I ran the test program with COM1 as the argument. Got this error (the java console of the applet had the same error): Exception in thread "main" java.lang.UnsatisfiedLinkError: nativeGetVersion at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) at Test.(Test.java:27) at Test.main(Test.java:23) Not so sure what nativeGetVersion is, but it sounds like someething to so with the jni interface ... Any ideas ? The rxtxserial.dll is in the system32 directory only (actually didn't read the one in system) Thanks john --- Trent Jarvi wrote: > > > On Fri, 10 Oct 2003, John Adams wrote: > > > 2. Before doing all this compiling, I just used > the > > same jar from linux, with a pre-compiled dll for > > version 2.1.7-pre-xxx. All I got back was a > warning > > about the rxtx versions being incompatible (2.1.6 > jar > > and 2.1.7-pre dll), and a com port unavailable > error > > (I tried all of them). > > Make sure you can open the port with another > application. Often people > forget to turn on the serial ports in BIOS. > > All enumeration does is try to open the port, set it > to sane values and > then do a timed out read. The system throws errors > if the port is not > there. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 15:07:44 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 22:07:44 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010202434.37277.qmail@web13201.mail.yahoo.com> References: <20031010202434.37277.qmail@web13201.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Well sojme progress has been made ... > Compiled and installed the 2.1-7pre16 and the brtowser > does not crash. Did say that the port is unavailable > though. B4 looking at the bios, I ran the test program > with COM1 as the argument. Got this error (the java > console of the applet had the same error): > > Exception in thread "main" > java.lang.UnsatisfiedLinkError: nativeGetVersion > at > gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) > at > gnu.io.RXTXCommDriver.(RXTXCommDriver.java:57) > at Test.(Test.java:27) > at Test.main(Test.java:23) > > Not so sure what nativeGetVersion is, but it sounds > like someething to so with the jni interface ... > Any ideas ? The rxtxserial.dll is in the system32 > directory only (actually didn't read the one in > system) I think you are mixing versions of rxtx. The jar file is correctly loading 'a' dll but it appears the dll found is perhaps an older version which does not contain the getVersion function. This is on Linux but should work as long as the native library is not been run through strip. jar -tf RXTXcomm.jar |grep Version gnu/io/RXTXVersion.class nm librxtxSerial.so |grep Version 000062c0 T Java_gnu_io_RXTXCommDriver_nativeGetVersion .. run a big find and clean up the litter :) From ricardo.trindade at emation.pt Sat Oct 11 05:21:32 2003 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Sat, 11 Oct 2003 12:21:32 +0100 Subject: [Rxtx] rxtx release Message-ID: Hi, Any news about a rxtx release ? thanks Ricardo From taj at linuxgrrls.org Sun Oct 12 23:34:13 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Mon, 13 Oct 2003 06:34:13 +0100 (BST) Subject: [Rxtx] rxtx release In-Reply-To: References: Message-ID: On Sat, 11 Oct 2003, Ricardo Trindade wrote: > Hi, > > Any news about a rxtx release ? > OK. I'll post an rxtx 2.0pre this week which contains all the rxtx2.1pre changes. I'll be gone for a few days after that but it will give people to try 2.0 and report bugs. We can fix any merging problems and make 'proper' releases of both 2.1 and 2.0 the following week. I plan on placing the INSTALL document in a wikki so anyone can add comments or make changes to a public copy. I hope to do that before I take off. I do not have test suites for 2.0. I'll do my best to provide the 2.1 changes in 2.0 but will not be testing it. Usually, the test suites do not cover as many things as the community does anyhow but the do avoid braindead mistakes. From david.garnier at trusted-logic.fr Mon Oct 6 01:19:51 2003 From: david.garnier at trusted-logic.fr (David Garnier) Date: Mon, 06 Oct 2003 07:19:51 -0000 Subject: [Rxtx] Re: USB-Serial converter... In-Reply-To: References: Message-ID: <1065424618.1468.12.camel@nublar.trusted-logic.fr> Hello, I worked with a USB card reader that used a PL2303 USB chip (seems very common). Here is a few possible hints: -- Is your device supported under Linux? /var/log/messages should contain something along those lines: Sep 8 14:22:11 nublar kernel: usbserial.c: USB Serial support registered for PL-2303 Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter detected Sep 8 14:22:11 nublar kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs) Sep 8 14:22:11 nublar kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.9 If you have just something like: Oct 2 09:38:54 nublar kernel: hub.c: USB new device connect on bus4/2, assigned device number 2 Oct 2 09:38:54 nublar kernel: usb.c: USB device 2 (vend/prod 0x54c/0xda) is not claimed by any active driver. This means that the kernel does not recognized your device. For the pl2303 on my SuSE 8.1, it was a simple matter of doing a modprobe pl2303 and the kernel loaded all the dependant modules by itself. -- I access the USB ports by /dev/ttyUSB0. -- Do you have read/write rights over this device? -- Are you sure that your JDK is picking up the javax library? You can try to add a mistake in the name of the driver in javax.comm.properties, like Driver=gnu.io.XXXRXTXCommDriver. Best Regards, David Garnier Le lun 06/10/2003 ? 02:43, Son To a ?crit : > Hi All, > I'm trying to use the USB to serial adapter(/dev/usb/ttyUSB0) but its not > working. The INSTALL documentation says passing VM properties like > > java -Dgnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0 myApp > > > but still javax.comm.NoSuchPortException is thrown > > I'm using rxtx-2.0-5. The mailing list archive is down BTW. > > many thanks, > son > > > On Fri, 24 May 2002, Trent Jarvi wrote: > > > > or in gnu.io.rxtx.properties: > > > > gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSB0:/dev/usb/ttyUSB1: > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://hex.linuxgrrls.org/mailman/listinfo/rxtx > From john_db_adams at yahoo.com Fri Oct 10 11:27:19 2003 From: john_db_adams at yahoo.com (John Adams) Date: Fri, 10 Oct 2003 10:27:19 -0700 (PDT) Subject: [Rxtx] win32 compile/run issues/help Message-ID: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Hi, On winXP: downloaded and installed mingW-3.0.xx and msys. Downloaded and unpacked the rxtx-2.1.6 tarball. Copied the makefile.winw32 to build\makefile, and changed the path accorrdingly. While compiling, would terminate on the error: could not find "config.h", so I copied ../config.h.in to src\config.f ... (not sure what else I could have done). Nonetheless, it compiled, and I got my dll and jar. Copied the jar to linux (where all is fine and dandy) to sign it and send it back. Copied the dll's to windows\system and windows\system32 (since I'm not sure which one to putit in). Put the jar in the proper directory for my applet. Calling rxtx from the applet crashes the browser. Anyone have any ideas here ? Two points: 1. This thing works fine in the applet under linux, and 2. Before doing all this compiling, I just used the same jar from linux, with a pre-compiled dll for version 2.1.7-pre-xxx. All I got back was a warning about the rxtx versions being incompatible (2.1.6 jar and 2.1.7-pre dll), and a com port unavailable error (I tried all of them). Would appreciate any help on this Thanks john __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From taj at linuxgrrls.org Fri Oct 10 11:42:34 2003 From: taj at linuxgrrls.org (Trent Jarvi) Date: Fri, 10 Oct 2003 18:42:34 +0100 (BST) Subject: [Rxtx] win32 compile/run issues/help In-Reply-To: <20031010172719.6651.qmail@web13206.mail.yahoo.com> References: <20031010172719.6651.qmail@web13206.mail.yahoo.com> Message-ID: On Fri, 10 Oct 2003, John Adams wrote: > Hi, > On winXP: > downloaded and installed mingW-3.0.xx and msys. > Downloaded and unpacked the rxtx-2.1.6 tarball. > Copied the makefile.winw32 to build\makefile, and > changed the path accorrdingly. > While compiling, would terminate on the error: could > not find "config.h", so I copied ../config.h.in to > src\config.f ... (not sure what else I could have > done). Nonetheless, it compiled, and I got my dll a